package com.作业.Day13;

import java.util.HashSet;
import java.util.Scanner;

/**
 * 使用键盘读取一行输入，去掉重复字符，打印出不同的字符
 */
public class Homework4 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        HashSet<String> hashSet = new HashSet<>();
        while (true) {
            String next = scanner.next();
            if(next.equals("0")){
                break;
            }

            hashSet.add(next);
        }
        for (String s : hashSet) {
            System.out.println(s);
        }

    }
}
